package com.teamwork.common.util;

public class RegexUtil {

    //以1开头，第二位为345678任意一个，后九位为0到9的任意数
    public static final String REGEX_PHONE = "1[345678][0-9]{9}";

    //汉字，字母，数字的组合，6-12位
    public static final String REGEX_USERNAME = "^[a-zA-Z0-9_-]{6,16}$";

    //至少一个字母，一个数字，一个特殊字符
//    public static final String REGEX_PASSWORD = "^(?=.*[A-Za-z])(?=.*\\d)(?=.*[$@$!%*#?&])[A-Za-z\\d$@$!%*#?&]{8,12}$\n";
    public static final String REGEX_PASSWORD = "^[a-zA-Z0-9_-]{6,16}$";
    //以1开头，第二位为345678任意一个，后九位为0到9的任意数
    public static final String REGEX_EMAIL = "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$";

}
